﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UFTSetEmail.aspx.cs" Inherits="UFTSetEmail"
    MasterPageFile="~/Default.master" EnableViewState="false" %>

<%@ Register Assembly="DevExpress.Web.ASPxHtmlEditor.v9.2, Version=9.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxHtmlEditor" TagPrefix="dxhe" %>

<%@ Register Assembly="DevExpress.Web.v9.2, Version=9.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxCallback" TagPrefix="dxcb" %>
<asp:Content ContentPlaceHolderID="head" ID="hd" runat="server" EnableViewState="false">

    <script src="UFTSetEmail.js" type="text/javascript"></script>

    

    <script src="js/FileUpload.js" type="text/javascript"></script>
    <script src="js/LOV.js" type="text/javascript"></script>

    <script src="js/Datetimepicker.js" type="text/javascript"></script>
    <link href="UFTSetEmail.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ContentPlaceHolderID="leftMenu" ID="leftnav" runat="server" EnableViewState="false">
        <% Response.Write(GenerateSideMenu()); %>
</asp:Content>
<asp:Content ContentPlaceHolderID="content" ID="ctnUFTSetEmail" runat="server"
    EnableViewState="false">
    
    <fieldset class="m_fs_border" id="fs_HTMLEmail">
        <legend>
            <a class="lnk" href="javascript:toggle('HTMLEmail');">
                HTML Email Body</a>
        </legend>
        <div id="div_HTMLEmail" style="width:500px;">
            <div id="cnt_HTMLEmail"><% Response.Write(m_ebd.BuildFieldSet_HTMLEmail()); %></div>
            <div id="edt_HTMLEmail" style="height:0px; overflow:hidden;">
                <dxhe:ASPxHtmlEditor ID="hteHTMLEmail" ClientInstanceName="hteHTMLEmail_c" runat="server"
                Width="500px" ActiveView="Design" >
                    <SettingsImageUpload UploadImageFolder="~/upload/events/">
                        <ValidationSettings AllowedFileExtensions=".jpe,.jpeg,.jpg,.gif,.png" MaxFileSize="500000">
                        </ValidationSettings> 
                    </SettingsImageUpload>
                </dxhe:ASPxHtmlEditor>
            <div id="mod_HTMLEmail" style="display:none;"></div>
            </div>
        </div>
        <dxcb:ASPxCallback ID="cbkHTMLEmail" ClientInstanceName="cbkHTMLEmail_c" runat="server"
            OnCallback="cbkHTMLEmail_Callback">
            <ClientSideEvents CallbackComplete="function(s, e) { cbkHTMLEmail_c_CallbackComplete(e); }" />
        </dxcb:ASPxCallback>
        <div id="lnkdscd_HTMLEmail" class="lnk" style="float: right; margin-left: 5px; display: none;" onclick="HTMLEmail_Discard();">
            discard</div>
        <div id="lnkedit_HTMLEmail" class="lnk" style="float: right;" onclick="HTMLEmail_OnClick();">
            edit</div>
        <div id="load_HTMLEmail" style="float: right; padding-right: 10px;">
        </div>
    </fieldset>
    
    <fieldset class="m_fs_border" id="fs_PlainEmail">
        <legend>
            <a class="lnk" href="javascript:toggle('PlainEmail');">
                Plain Email Body</a>
        </legend>
        <div id="div_PlainEmail" style="width:500px;">
            <div id="cnt_PlainEmail"><% Response.Write(m_ebd.BuildFieldSet_PlainEmail()); %></div>
            <div id="edt_PlainEmail" style="height:0px; overflow:hidden;">
                <% Response.Write(m_ebd.BuildEditor_PlainEmail()); %>
            <div id="mod_PlainEmail" style="display:none;"></div>
            </div>
        </div>
        <dxcb:ASPxCallback ID="cbkPlainEmail" ClientInstanceName="cbkPlainEmail_c" runat="server"
            OnCallback="cbkPlainEmail_Callback">
            <ClientSideEvents CallbackComplete="function(s, e) { cbkPlainEmail_c_CallbackComplete(e); }" />
        </dxcb:ASPxCallback>
        <div id="lnkdscd_PlainEmail" class="lnk" style="float: right; margin-left: 5px; display: none;" onclick="PlainEmail_Discard();">
            discard</div>
        <div id="lnkedit_PlainEmail" class="lnk" style="float: right;" onclick="PlainEmail_OnClick();">
            edit</div>
        <div id="load_PlainEmail" style="float: right; padding-right: 10px;">
        </div>
    </fieldset>
    
</asp:Content>
